package com.situ.mall.controller;

import com.situ.mall.pojo.query.UserQuery;
import com.situ.mall.service.IUserSevice;
import com.situ.mall.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserSevice userService;
    @Autowired
    private RedisTemplate redisTemplate;

    @RequestMapping("/list")
    public PageResult list(UserQuery userQuery) {
        return userService.list(userQuery);
    }


}
